package com.hc.service.impl;

import com.hc.dao.PaymentMapper;
import com.hc.entity.Payment;
import com.hc.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentMapper paymentMapper;
    @Override
    public int createPayment(Payment payment) {
        return paymentMapper.insertPayment(payment);
    }

    @Override
    public Payment getPaymentById(Integer id) {
        return paymentMapper.selectPaymentById(id);
    }
}
